/*
 * @(#)WorkflowStepFormEquat.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.workflow.bean;

import com.dcivision.framework.bean.AbstractBaseObject;

/**
 * WorkflowStepFormEquat.java
 * 
 * This class is the serializable bean reflecting business logic uses.
 * It represents a form value driven task's form equation
 * 
 * @author Angus Shiu
 * @company DCIVision Limited
 * @creation date 26/08/2004
 * @version $Revision: 1.11 $
 */
public class WorkflowStepFormEquat extends AbstractBaseObject {
  
  public static final String REVISION = "$Revision: 1.11 $";
  static final long serialVersionUID = -4036124432881073962L;
  
  /** Indicates the equation is a comparsion of numbers */
  public static final String OPERATION_TYPE_NUMBER = "N";
  /** Indicates the equation is a comparsion of string */
  public static final String OPERATION_TYPE_STRING = "S";
  /** Indicates the equation is a comparsion of date */
  public static final String OPERATION_TYPE_DATE = "D";
  /** Indicates the equation is a comparsion of form option elements */
  public static final String OPERATION_TYPE_OPTION = "O";
  
  /** Indicates the equation is an "equals" comparsion */
  public static final String STRING_OPERATION_EQUALS = "E";
  /** Indicates the equation is a "not equals" comparsion */
  public static final String STRING_OPERATION_NOT_EQUALS = "NE";
  /** Indicates the equation is an "empty" comparsion */
  public static final String STRING_OPERATION_IS_EMPTY = "M";
  /** Indicates the equation is a "not empty" comparsion */
  public static final String STRING_OPERATION_IS_NOT_EMPTY = "NM";
  /** Indicates the equation is a regional match comparsion */
  public static final String STRING_OPERATION_CONTAINS = "C";
  /** Indicates the equation is a starts with comparision */
  public static final String STRING_OPERATION_STARTS_WITH = "S";  
  
  /** Indicates the equation is a date after comparision */
  public static final String DATE_OPERATION_AFTER = "A";
  /** Indicates the equation is a date before comparsion */
  public static final String DATE_OPERATION_BEFORE = "B";
  /** Indicates the equation is a date equals comparsion */
  public static final String DATE_OPERATION_EQUALS = "Q";
  
  /** The separation character for different equations */
  public static final String ELEMENT_PREFIX_CHAR = "$";
  /** The separation character for different properties of an equation */
  public static final String SPLIT_PREFIX_CHAR = ";";
  
  private Integer workflowStepID = null;
  private Integer formRecordID = null;
  private Integer routeSeq = null;
  private String  routeName = null;
  private String defaultFlag = null;
  private String operand1 = null;
  private String operand2 = null;
  private String operand = null;
  private String operator = null;
  private String compare = null;
  private String value = null;
  private String formEquation = null;
  private String operationType = null;
  private String dateFormat = null;
  
  
  public WorkflowStepFormEquat() {
    super();
  }
  /**
   * @return Returns the workflowStepID.
   */
  public Integer getWorkflowStepID() { 
    return(this.workflowStepID);
  }
  /**
   * @param workflowStepID The workflowStepID to set.
   */
  public void setWorkflowStepID(Integer workflowStepID) { 
    this.workflowStepID = workflowStepID;
  }
  /**
   * @return Returns the formRecordID.
   */
  public Integer getFormRecordID() { 
    return(this.formRecordID);
  }
  /**
   * @param formRecordID The formRecordID to set.
   */
  public void setFormRecordID(Integer formRecordID) { 
    this.formRecordID = formRecordID;
  }
  /**
   * @return Returns the routeSeq.
   */
  public Integer getRouteSeq(){
    return this.routeSeq; 
  }
  /**
   * @param routeSeq The routeSeq to set.
   */
  public void setRouteSeq(Integer routeSeq){
    this.routeSeq = routeSeq; 
  }
  /**
   * @return Returns the routeName.
   */
  public String getRouteName(){
    return this.routeName; 
  }
  /**
   * @param routeName The routeName to set.
   */
  public void setRouteName(String routeName){
    this.routeName = routeName; 
  }
  /**
   * @return Returns the defaultFlag.
   */
  public String getDefaultFlag(){
    return this.defaultFlag; 
  }
  /**
   * @param defaultFlag The defaultFlag to set.
   */
  public void setDefaultFlag(String defaultFlag){
    this.defaultFlag = defaultFlag;
  }
  /**
   * @return Returns the operand.
   */
  public String getOperand() { 
    return(this.operand);
  }
  /**
   * @param operand The operand to set.
   */
  public void setOperand(String operand) { 
    this.operand = operand;
  }
  /**
   * @return Returns the operand1.
   */
  public String getOperand1() { 
    return(this.operand1);
  }
  /**
   * @param operand1 The operand1 to set.
   */
  public void setOperand1(String operand1) { 
    this.operand1 = operand1;
  }
  /**
   * @return Returns the operand2.
   */
  public String getOperand2() { 
    return(this.operand2);
  }
  /**
   * @param operand2 The operand2 to set.
   */
  public void setOperand2(String operand2) { 
    this.operand2 = operand2;
  }
  /**
   * @return Returns the operator.
   */
  public String getOperator() { 
    return(this.operator);
  }
  /**
   * @param operator The operator to set.
   */
  public void setOperator(String operator) { 
    this.operator = operator;
  }
  /**
   * @return Returns the compare.
   */
  public String getCompare() { 
    return(this.compare);
  }
  /**
   * @param compare The compare to set.
   */
  public void setCompare(String compare) { 
    this.compare = compare;
  }
  /**
   * @return Returns the value.
   */
  public String getValue() { 
    return(this.value);
  }
  /**
   * @param value The value to set.
   */
  public void setValue(String value) { 
    this.value = value;
  }
  /**
   * @return Returns the formEquation.
   */
  public String getFormEquation(){
    return this.formEquation;
  }
  /**
   * @param formEquation The formEquation to set.
   */
  public void setFormEquation(String formEquation){
    this.formEquation = formEquation;
  }
  /**
   * @return Returns the operationType.
   */
  public String getOperationType(){
    return this.operationType;
  }
  /**
   * @param operationType The operationType to set.
   */
  public void setOperationType(String operationType){
    this.operationType = operationType; 
  }
  /**
   * @return Returns the dateFormat.
   */
  public String getDateFormat(){
    return this.dateFormat; 
  }
  /**
   * @param dateFormat The dateFormat to set.
   */
  public void setDateFormat(String dateFormat){
    this.dateFormat = dateFormat; 
  }
  
}
